<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
$attributes = array(
    'class' => 'control-label',
);
?>
<div class="span9">
    <?php $causa = $this->session->userdata('causa'); ?>
    <div class="breadcrumb">
        <h4 style="margin: 0px;"><?php echo $causa['caratula'] . ' - ' . $causa['nroExpediente']; ?></h4>
    </div>

    <h2><?php echo $titulo; ?></h2>

    <?php echo get_message(); ?>

    <?php echo form_open(); ?>

    <div class="row-fluid">
        <div class="span6">
            <div class="control-group">
                <?php echo form_label('Nombre', 'nombre', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'nombre', 'type' => 'text', 'value' => $demandante['nombre'])); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('Apellido', 'apellido', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'apellido', 'type' => 'text', 'value' => $demandante['apellido'])); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('Tipo de Documento', 'tipoDoc', $attributes); ?>
                <div class="controls">
                    <?php
                    echo form_dropdown('tipoDoc', $tipo_doc, $demandante['tipoDoc'], 'class="span11" id="tipoDoc"');
                    ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('Número de Documento', 'numeroDoc', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'numeroDoc', 'type' => 'text', 'value' => $demandante['numeroDoc'])); ?>
                </div>
            </div>
        </div>

        <div class="span6">
            <div class="control-group">
                <?php echo form_label('Teléfono', 'telefono', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'telefono', 'type' => 'text', 'value' => $demandante['telefono'])); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('Dirección', 'direccion', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'direccion', 'type' => 'text', 'value' => $demandante['direccion'])); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('Localidad', 'localidad', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'localidad', 'type' => 'text', 'value' => $demandante['localidad'])); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo form_label('CUIT', 'cuit', $attributes); ?>
                <div class="controls">
                    <?php echo form_input(array('class' => 'span11', 'name' => 'cuit', 'type' => 'text', 'value' => $demandante['cuit'])); ?>
                </div>
            </div>
        </div>

        <div class="clearfix"></div>

        <div class="control-group">
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'submit', 'type' => 'submit', 'value' => 'Guardar', 'class' => 'btn')); ?>
                <button type="button" onclick="window.location = '<?php echo base_url('causas/intervinientes'); ?>';" class="btn">Cancelar</button>
            </div>
        </div>
    </div>

    <?php echo form_close(); ?>

</div>